From 308971cc2ef08bd3520efe1214abaf75820dd17d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 20 Dec 2012 19:51:06 +0100 Subject: [PATCH] roundedbox: Fix copy-paste error y coordinates don't care about the right value, they want bottom. --- gtk/gtkroundedbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c index 3fa44e0ab9..653d27feef 100644 --- a/gtk/gtkroundedbox.c +++ b/gtk/gtkroundedbox.c @@ -171,7 +171,7 @@ _gtk_rounded_box_grow (GtkRoundedBox *box, box->box.width += left + right; } - if (box->box.height + bottom + right < 0) + if (box->box.height + bottom + top < 0) { box->box.y -= top * box->box.height / (top + bottom); box->box.height = 0; -- 2.30.2